package day03;

public class OperDemo {
    public static void main(String[] args) {























       /* String name ="HX";
        int age=29;
        System.out.println("大家好，我叫"+name+"，今年"+age+"岁了");

        System.out.println(20+30+50+"50");
        System.out.println("10"+30+40);
        System.out.println(10+"20"+30+40+50);

        */

       int a=10,b=10,c=20,d=30;
        int max=a>b?a:b;
        System.out.println(max);


  /*int a=5;
        a+=10;
        System.out.println(a);
        a*=2;
        System.out.println(a);
        a/=5;
        System.out.println(a);

        short s =10;
        //s =s+10;编译错误，需要强转，改为s=(short)(s+10);
        s+=10;//扩展运算符会自动强转

         */
/*  int a=5,b=5;
        a++;
        ++b;
        System.out.println(a);
        System.out.println(b);
       */
       /* int a=5,b=5;
        int c=a++;
        int d =++b;
        System.out.println(a);//a自增1，从5变成6
        System.out.println(b);//b自增1，从5变成6
        System.out.println(c);//将a++的值5赋值给c，输出5
        System.out.println(d);//将b自增1的值6赋值给d，输出6

        */



    }
}
